<!DOCTYPE html>
<script src="resources/responsive-test.js"></script>
<script>
assertCSSResponsive({
  property: 'left',
  from: 'inherit',
  to: '200px',
  configurations: [{
    state: {inherited: '100px'},
    expect: [
      {at: 0.25, is: '125px'},
      {at: 0.75, is: '175px'},
    ],
  }, {
    state: {inherited: 'auto'},
    expect: [
      {at: 0.25, is: 'auto'},
      {at: 0.75, is: '200px'},
    ],
  }],
});

assertCSSResponsive({
  property: 'left',
  from: '200px',
  to: neutralKeyframe,
  configurations: [{
    state: {underlying: '100px'},
    expect: [
      {at: 0.25, is: '175px'},
      {at: 0.75, is: '125px'},
    ],
  }, {
    state: {underlying: 'auto'},
    expect: [
      {at: 0.25, is: '200px'},
      {at: 0.75, is: 'auto'},
    ],
  }, {
    state: {underlying: 'inherit', inherited: '100px'},
    expect: [
      {at: 0.25, is: '175px'},
      {at: 0.75, is: '125px'},
    ],
  }, {
    state: {underlying: 'inherit', inherited: 'auto'},
    expect: [
      {at: 0.25, is: '200px'},
      {at: 0.75, is: 'auto'},
    ],
  }],
});
</script>
